package com.st.security.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.st.security.entities.SysPermission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @创建人: 放生
 * @创建时间: 2022/4/7
 * @描述:
 */
public interface SysPermissionMapper extends BaseMapper<SysPermission> {
    /**
     * 根据用户ID获取拥有资源权限
     * @param userId 用户id
     * @return
     */
    List<SysPermission> selectPermissionByUserId(@Param("userId")Long userId);
}
